package com.imooc.demo.dao;

import com.imooc.demo.entity.Category1;
import com.imooc.demo.entity.Category2;
import java.util.List;

public interface Category1Dao {
    /**
     *列出种类列表
     * @return category1List
     */
    List<Category1> queryCategory1();

    /**
     *
     * 根据Id列出具体种类
     * @return category1
     */
    Category1 getQueryCategory1ById(int category1Id);

    /**
     * 插入种类信息
     *
     * @return
     */
    int insertCategory1(Category1 category1);

    /**
     * 更新种类信息
     * @param category1
     * @return
     */
    int updateCategory1(Category1 category1);


    /**
     * 删除指定种类信息
     * @param category1Id
     * @return
     */
    int deleteCategory1(int category1Id);

    /**
     *  一对多查询
     */
    Category1 selectCategory1ById(int category1Id);
    Category1 selectCategory2ById(int category2Id);





}
